<?php
/**
 * Countries module
 * 
 * @author Konstantin Shamko <konstantin.shamko@gmail.com> 
 * @version 0.0.1
 * @copyright  Copyright (c) 2009 Konstantin Shamko
 * @package Locations Module
 * @subpackage Model
 * @license  New BSD License
 *
 */
class Models_Locations_Countries extends Bel_Model_Abstract {
	
	/**
	 * Array of names of table classes which have one-to-many relations with contries table
	 *
	 * @var array
	 */	
	protected $_dependentTables = array ('Models_Locations_Regions');
	
	/**
	 * Constructor. Sets table name & primary key
	 *
	 * @param array $array - see Zend_Db_Table_Abstract for details
	 */	
	public function __construct($array = array()) {
		$this->_name = TABLE_PREFIX . 'countries';
		$this->_primary = array ('country_id' );
		parent::__construct ( $array );
	}
}